package com.my.ycv51.ycinit.en;


import android.os.Parcel;
import android.os.Parcelable;

/**
 * The enum of the encoder encode type.
 *
 * @Author MRH
 */
public enum DecodeType implements Parcelable {

    YUV(0),
    JPG(1),
    PNG(2),
    BMP(3);

    DecodeType(int i) {

    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(ordinal());
    }

    public static final Creator<DecodeType> CREATOR = new Creator<DecodeType>() {

        @Override
        public DecodeType createFromParcel(Parcel source) {
            return DecodeType.values()[source.readInt()];
        }

        @Override
        public DecodeType[] newArray(int size) {
            return new DecodeType[size];
        }
    };
}
